public class Geomry {
    Cirle c1;
    Rect r1;
    Geomry(Cirle c,Rect r){//构造方法，参数是引用类型
        this.c1=c;
        this.r1=r;
    }
    void setC1(double x,double y,double r){//设置圆的形状
        c1.setR(r);//设置c1圆的半径
        c1.setX(x);
        c1.setY(y);
    }
   void setR1(double x,double y,double width,double height){
        r1.setX(x);
        r1.setY(y);
        r1.setWidth(width);
        r1.setHeight(height);
   }

    void show(){
        System.out.println("组合图形圆的信息\nx:"+c1.getX()+" y:"+c1.getY()+" r:"+c1.getR());
        System.out.println("组合图形长方形的信息\nx:"+r1.getX()+" y:"+r1.getY()+" width:"+r1.getWidth()+" height:");
    }
}
